using System;
using System.Collections.Generic;
using System.Text;

using Sandia.MVCFramework.Common;
using Sandia.MVCFramework.TestPlugin.Data;
using Sandia.MVCFramework.View;

namespace Sandia.MVCFramework.TestPlugin.View
{
    /// <summary>
    /// 
    /// </summary>
    public class DummyView: AbstractStandardView
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="requestRouter"></param>
        /// <param name="publisher"></param>
        public DummyView(IRequestRouter requestRouter, IPublisher publisher)
            : base(requestRouter, publisher)
        {
        }

        /// <summary>
        /// 
        /// </summary>
        public override IList<Type> DesiredSubscriptions
        {
            get
            {
                List<Type> desiredSubscriptions = new List<Type>();
                desiredSubscriptions.Add(typeof(DData));
                return desiredSubscriptions;
            }
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="dataPacket"></param>
        public override void HandlePublishedData(Sandia.MVCFramework.Data.DataPacket dataPacket)
        {
            throw new Exception("The method or operation is not implemented.");
        }

        /// <summary>
        /// 
        /// </summary>
        protected override void setupView()
        {
            this.name = "Dummy View";
        }

        public override void Start()
        {
            // Nothing to do.
        }
    }
}
